<template>
	<view class="content">
		<h4>{{title}}</h4>
		<view class="list">
			<view class="lisr_item" v-for="item in BangDanTuiJian" :key="item.id" @click="jump(item.id)">
				<!--  #ifdef  MP-WEIXIN -->
				<image :src="item.coverImgUrl"></image>
				<!--  #endif -->
				<!--  #ifndef  MP-WEIXIN -->
				<img  v-lazy="item.coverImgUrl"> 
				<!--  #endif -->
				<p>{{item.name}}</p>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods:{
			jump(id){
				this.$emit('jump',id)
			}
		},
		props:{
			BangDanTuiJian:{
				type:Array
			},
			title:{
				type:String,
				default:'榜单推荐'
			}
		}
	}
</script>

<style lang="scss">
	.content{
		width: 100%;
		margin-bottom: 100rpx;
		h4{
			margin-top: 20rpx;
			margin-left: 20rpx;
			margin-bottom: 30rpx;
		}
		.list{
			width: 100%;
			display: flex;
			justify-content: space-around;
			flex-wrap: wrap;
			.lisr_item{
				width: 28%;
				height: 280rpx;
				//background-color:#fffae8;
				/*  #ifdef  MP-WEIXIN  */
				image{
					width: 100%;
					height: 210rpx;
				}
				/*  #endif  */
				/*  #ifndef  MP-WEIXIN  */
				img{
					width: 100%;
					height: 210rpx;
				}
				/*  #endif  */
				
				p{
					font-size: 24rpx;
					font-weight: 500;
					text-align: center;
				}
			}
		}
	}
</style>
